<?php use_helper('I18N') ?>

<div class="signin-form">
  <?php include_partial('sfGuardAuth/partials/login_form', array('form' => $form)) ?>
  <?php include_partial('sfGuardAuth/partials/signin_form', array('guard_user_form' => $guard_user_form)) ?>
	
	<div class="clear"></div>
</div>

<script type="text/javascript">
  <?php echo $guard_user_form['username']->hasError() ? "form_error('signin-username');" : '' ?>
  <?php echo $guard_user_form['password']->hasError() ? "form_error('signin-password');" : '' ?>
  <?php echo $guard_user_form['email']->hasError() ? "form_error('signin-email');" : '' ?>
  
  <?php echo $form['username']->hasError() ? "form_error('login-username');" : '' ?>
  <?php echo $form['password']->hasError() ? "form_error('login-password');" : '' ?>
</script>